package org.swift.mashup.engine.deployment.mcr;

import org.apache.axis2.context.MessageContext;
import org.swift.mashup.engine.deployment.MessageContextReader;

import java.util.HashMap;
import java.util.Map;

public class NoOpMessageContextReader implements MessageContextReader {
	private static NoOpMessageContextReader instance = null;

	public static NoOpMessageContextReader getInstance() {
		if (instance == null) {
			instance = new NoOpMessageContextReader();
		}
		return instance;
	}

	private NoOpMessageContextReader() {
	}

	@Override
	public Map<String, Object> createParameterMap(MessageContext context) {
		return new HashMap<String,Object>();
	}
}
